package factory;

import factory.impl.CasualImpl;
import factory.impl.SportSwearImpl;
import factory.impl.BusinessImpl;
import factory.service.ClothesMakeService;

/**
 * 服装生产工厂
 * @author lihaoshan
 * @date 2018-06-19
 * */
public class ClothesMakeFactory {

    /**
     * 根据服装类型制作
     *
     * @param clothesType
     * @author lihaoshan
     * @date 2018-06-19
     * */
    public ClothesMakeService getClothes(String clothesType){

        if("商务".equals(clothesType)){
            return new BusinessImpl();
        } else if ("运动".equals(clothesType)){
            return new SportSwearImpl();
        } else if ("休闲".equals(clothesType)){
            return new CasualImpl();
        } else {
            return null;
        }

    }
}
